@import "../../common/styles/scss/index.scss";
.calender {
  // 头部
  .calender_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    .date {
      flex-grow: 1;
      text-align: center;
      .week {
        font-size: 10px;
        color: $light_gray;
      }
    }
  }
  // 日历主体部分
  .clender_main {
    display: grid;
    grid-template: repeat(5, 1fr) / repeat(7, 1fr);
    // grid-gap: 10px;
    justify-items: center;
    align-items: center;
    .item,
    .grid_header {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 10px;
      font-size: 20px;
      font-weight: bolder;
      box-sizing: border-box;
    }
    // 日期
    .item {
      width: 100%;
      height: 100%;
      text-align: center;
      border-radius: 50%;
      // 农历
      .lunar {
        font-size: 10px;
        color: $light_gray;
        font-weight: bolder;
      }
    }
    // 表头，周一到周日
    .grid_header {
      font-size: 12px;
      opacity: 0.5;
    }
    // 其他月的天数
    .othersMonth {
      color: $light_gray;
    }
    // 是否有备忘录
    .existMemo {
      position: relative;
      &::before {
        content: "·";
        display: block;
        position: absolute;
        top: -4px;
        text-align: center;
        width: 100%;
        font-size: 18px;
        color: $light_gray;
      }
    }

    // 选择的日
    .selectDay {
      background-color: $lighter_gray;
    }
    // 今天
    .today {
      background-color: #fe8c28;
      color: $white;
      .lunar {
        color: $white;
      }
      &::before {
        color: $white;
      }
    }
  }
}
